tests: Convert two more exit 77 instances into TAP-compatible SKIP
authorColin Walters <walters@verbum.org>
Thu, 3 Mar 2016 19:19:10 +0000 (14:19 -0500)
committerColin Walters <walters@verbum.org>
Thu, 3 Mar 2016 19:19:10 +0000 (14:19 -0500)
Followup to https://github.com/GNOME/ostree/pull/194

tests/test-pull-corruption.sh
tests/test-rofiles-fuse.sh

index 1df31943d43d2b68b348d9084388fa180c4418be..f6d1605f2b28871667a9effe7fea6909f2346cce 100755 (executable)
 
 set -euo pipefail
 
+# If gjs is not installed, skip the test
+if ! gjs --help >/dev/null 2>&1; then
+    echo "1..0 # SKIP no gjs"
+fi
+
 . $(dirname $0)/libtest.sh
 
 setup_fake_remote_repo1 "archive-z2"
@@ -47,9 +52,6 @@ do_corrupt_pull_test() {
     fi
 }
 
-# If gjs is not installed, skip the test
-gjs --help >/dev/null 2>&1 || exit 77
-
 # FIXME - ignore errors here since gjs in RHEL7 has the final
 # unrooting bug
 gjs $(dirname $0)/corrupt-repo-ref.js ${repopath} main || true
index fef74153a7435308f2167af9bd51b79b5af60a06..20095710a65b66f87326773db081aaeb0fedfb4f 100755 (executable)
 
 set -euo pipefail
 
-echo "1..5"
+if ! fusermount --version >/dev/null 2>&1; then
+    echo "1..0 # SKIP no fusermount"
+fi
 
 . $(dirname $0)/libtest.sh
 setup_test_repository "bare-user"
 
-fusermount --version >/dev/null 2>&1 || exit 77
+echo "1..5"
 
 mkdir mnt